<?php 
define('MODULE_NAME','wxmessage');

$action = strtolower($_REQUEST['action']);
if(empty($action))
    exit('Access Denied');

define('ACTION_NAME',$action);

require dirname(__FILE__).'/core/fanwe.php';
$fanwe = &FanweService::instance();
$fanwe->initialize();
require fimport('module/wxmessage');

if(!method_exists('WxMessageModule', ACTION_NAME)) {
    exit('Access Denied');
}

call_user_func(array('WxMessageModule', ACTION_NAME));